import request from '@/utils/request'

// 查询BwCompanyPartner列表
export function listBwCompanyPartner(query) {
    return request({
        url: '/api/v1/bw/companyList',
        method: 'get',
        params: query
    })
}

// 查询BwCompanyPartner详细
export function getBwCompanyPartner (companyPartnerId) {
    return request({
        url: '/api/v1/bw/company/' + companyPartnerId,
        method: 'get'
    })
}


// 新增BwCompanyPartner
export function addBwCompanyPartner(data) {
    return request({
        url: '/api/v1/bw/company',
        method: 'post',
        data: data
    })
}

// 修改BwCompanyPartner
export function updateBwCompanyPartner(data) {
    return request({
        url: '/api/v1/bw/company',
        method: 'put',
        data: data
    })
}

// 删除BwCompanyPartner
export function delBwCompanyPartner(companyPartnerId) {
    return request({
        url: '/api/v1/bw/company/' + companyPartnerId,
        method: 'delete'
    })
}
